import { RootState } from "@/store";
import { ActionContext, MutationTree } from "vuex";

export declare interface IPromissionActions {
    [key: string]: (ctx: ActionContext<IPromissionState, RootState>, payload?: any) => void;
}
export declare interface IPromissionMutations extends MutationTree<IPromissionState> { }

export declare interface IPromissionGetter {
    [key: string]: (state: IPromissionState, rootState?: RootState) => any;
}

export declare interface IPromissionState {
    token: string,
    role: string,
}